package com.jihu.design.creatation.singleton;

/**
 * @author jihu
 * @date 2021/9/10
 */
public class MainTest {



    public static void main(String[] args) {
        new Thread(()-> {
            Person person1 = Person.getInstance();
            System.out.println(Thread.currentThread().getName() + ":" + person1);
        }).start();

        new Thread(()-> {
            Person person2 = Person.getInstance();
            System.out.println(Thread.currentThread().getName() + ":" + person2);
        }).start();

    }
}
